BX.ready(function(){

	bOpen = false;
	BX.bind (BX("popup_general"), "click", opa);
	function opa()
	{	
		if (!bOpen){
			fxStart = "20";
			fxFinish = "200"; 
		}
		else{
			fxStart = "200";
			fxFinish = "20";
		}

		(new BX.fx({
			time: 0.9,
			step: 0.01,
			type: 'linear',
			start: fxStart,
			finish: fxFinish,
			callback: function(width){
				BX("popup_general").style.width = width + "px";
			},
			callback_start: function () {
				BX("cons_popup_enter").style.display="none";
				bOpen = (bOpen)? false : true;
			},
			callback_complete: function () {
				if (bOpen)
					BX("cons_popup_enter").style.display="block";
			}
		})).start();
	}
})